package cn.yitun.chat.yitunservercommonlib.converter.dto2po.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupJoinApplyDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupJoinApplyInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupJoinApplyDto2PoConverter {
    GroupJoinApplyDto2PoConverter INSTANCE = Mappers.getMapper(GroupJoinApplyDto2PoConverter.class);

    GroupJoinApplyDto do2dto(GroupJoinApplyInfo info);

    List<GroupJoinApplyDto> do2dto(List<GroupJoinApplyInfo> doList);

    @InheritInverseConfiguration
    GroupJoinApplyInfo dto2do(GroupJoinApplyDto dto);
    @InheritInverseConfiguration
    List<GroupJoinApplyInfo> dto2do(List<GroupJoinApplyDto> dtoList);
}
